<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Context Free LALR1 compiler: contextFree.grammar.GrammarFactory Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Context Free LALR1 compiler
   &#160;<span id="projectnumber">1.1</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.8.0 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="dynsections.js"></script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Packages</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('classcontext_free_1_1grammar_1_1_grammar_factory.html','');
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#pri-static-methods">Static Private Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">contextFree.grammar.GrammarFactory Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>An object factory that create a correct instance of grammar.  
 <a href="classcontext_free_1_1grammar_1_1_grammar_factory.html#details">More...</a></p>

<p><a href="classcontext_free_1_1grammar_1_1_grammar_factory-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a6829a8d168584b20ac594fae87de591a"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6829a8d168584b20ac594fae87de591a"></a>
static <a class="el" href="interfacecontext_free_1_1grammar_1_1_i_grammar.html">IGrammar</a>&#160;</td><td class="memItemRight" valign="bottom"><b>createContextFreeGrammar</b> (String ass, List&lt; <a class="el" href="classcontext_free_1_1grammar_1_1_production.html">Production</a> &gt; prod)</td></tr>
<tr class="memitem:a25d4e5bf4a9a452efca5dd6518e16c25"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="interfacecontext_free_1_1grammar_1_1_i_grammar.html">IGrammar</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcontext_free_1_1grammar_1_1_grammar_factory.html#a25d4e5bf4a9a452efca5dd6518e16c25">createGrammar</a> (String ass, List&lt; <a class="el" href="classcontext_free_1_1grammar_1_1_production.html">Production</a> &gt; prod, List&lt; String &gt; V, List&lt; String &gt; T)</td></tr>
<tr class="memdesc:a25d4e5bf4a9a452efca5dd6518e16c25"><td class="mdescLeft">&#160;</td><td class="mdescRight">Check the type of grammar (ex.  <a href="#a25d4e5bf4a9a452efca5dd6518e16c25"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="pri-static-methods"></a>
Static Private Member Functions</h2></td></tr>
<tr class="memitem:a513482168bb15e55211bc4f04e276711"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="enumcontext_free_1_1grammar_1_1_g_r_a_m_m_a_r___t_y_p_e.html">GRAMMAR_TYPE</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcontext_free_1_1grammar_1_1_grammar_factory.html#a513482168bb15e55211bc4f04e276711">checkType</a> (List&lt; <a class="el" href="classcontext_free_1_1grammar_1_1_production.html">Production</a> &gt; prod, List&lt; String &gt; V, List&lt; String &gt; T)</td></tr>
<tr class="memdesc:a513482168bb15e55211bc4f04e276711"><td class="mdescLeft">&#160;</td><td class="mdescRight">Controls that make up the grammar productions that are valid.  <a href="#a513482168bb15e55211bc4f04e276711"></a><br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>An object factory that create a correct instance of grammar. </p>
<dl class="section author"><dt>Author:</dt><dd>Paolo Pino </dd></dl>

<p>Definition at line <a class="el" href="_grammar_factory_8java_source.html#l00010">10</a> of file <a class="el" href="_grammar_factory_8java_source.html">GrammarFactory.java</a>.</p>
</div><hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a513482168bb15e55211bc4f04e276711"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="enumcontext_free_1_1grammar_1_1_g_r_a_m_m_a_r___t_y_p_e.html">GRAMMAR_TYPE</a> <a class="el" href="classcontext_free_1_1grammar_1_1_grammar_factory.html#a513482168bb15e55211bc4f04e276711">contextFree.grammar.GrammarFactory.checkType</a> </td>
          <td>(</td>
          <td class="paramtype">List&lt; <a class="el" href="classcontext_free_1_1grammar_1_1_production.html">Production</a> &gt;&#160;</td>
          <td class="paramname"><em>prod</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">List&lt; String &gt;&#160;</td>
          <td class="paramname"><em>V</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">List&lt; String &gt;&#160;</td>
          <td class="paramname"><em>T</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [static, private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Controls that make up the grammar productions that are valid. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">List</td><td>of production </td></tr>
    <tr><td class="paramname">list</td><td>of Not-terminal symbol </td></tr>
    <tr><td class="paramname">list</td><td>of Terminal symbol </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>GRAMMAR_TYPE.NO_CONTEXT_FREE if the grammar isn't context-free, GRAMMAR_TYPE.CONTEXT_FREE otherwise; </dd></dl>
<dl class="section author"><dt>Author:</dt><dd>Pierluigi Sottile, Paolo Pino </dd></dl>

<p>Definition at line <a class="el" href="_grammar_factory_8java_source.html#l00043">43</a> of file <a class="el" href="_grammar_factory_8java_source.html">GrammarFactory.java</a>.</p>

<p><div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-0-trigger" src="closed.png" alt="+"/> Here is the caller graph for this function:</div>
<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-0-content" class="dyncontent" style="display:none;">
<div class="center"><img src="classcontext_free_1_1grammar_1_1_grammar_factory_a513482168bb15e55211bc4f04e276711_icgraph.png" border="0" usemap="#classcontext_free_1_1grammar_1_1_grammar_factory_a513482168bb15e55211bc4f04e276711_icgraph" alt=""/></div>
<map name="classcontext_free_1_1grammar_1_1_grammar_factory_a513482168bb15e55211bc4f04e276711_icgraph" id="classcontext_free_1_1grammar_1_1_grammar_factory_a513482168bb15e55211bc4f04e276711_icgraph">
<area shape="rect" id="node3" href="classcontext_free_1_1grammar_1_1_grammar_factory.html#a25d4e5bf4a9a452efca5dd6518e16c25" title="Check the type of grammar (ex." alt="" coords="369,5,711,32"/><area shape="rect" id="node5" href="classinput_parser_1_1_four_line_input_parser.html#a99c37488d66cfeecb33e13d573b4a81a" title="Read the file .4l and creates the object grammar." alt="" coords="761,5,1005,32"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a25d4e5bf4a9a452efca5dd6518e16c25"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="interfacecontext_free_1_1grammar_1_1_i_grammar.html">IGrammar</a> <a class="el" href="classcontext_free_1_1grammar_1_1_grammar_factory.html#a25d4e5bf4a9a452efca5dd6518e16c25">contextFree.grammar.GrammarFactory.createGrammar</a> </td>
          <td>(</td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>ass</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">List&lt; <a class="el" href="classcontext_free_1_1grammar_1_1_production.html">Production</a> &gt;&#160;</td>
          <td class="paramname"><em>prod</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">List&lt; String &gt;&#160;</td>
          <td class="paramname"><em>V</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">List&lt; String &gt;&#160;</td>
          <td class="paramname"><em>T</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Check the type of grammar (ex. </p>
<p>Context-free) and returns the correct instance. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">Axioms</td><td></td></tr>
    <tr><td class="paramname">List</td><td>of <a class="el" href="classcontext_free_1_1grammar_1_1_production.html">Production</a> </td></tr>
    <tr><td class="paramname">List</td><td>of Not Terminal Symbol </td></tr>
    <tr><td class="paramname">list</td><td>of Terminal Symbol </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>The grammar instance if is context-free type, null otherwise. </dd></dl>
<dl class="section author"><dt>Author:</dt><dd>Paolo Pino </dd></dl>

<p>Definition at line <a class="el" href="_grammar_factory_8java_source.html#l00024">24</a> of file <a class="el" href="_grammar_factory_8java_source.html">GrammarFactory.java</a>.</p>

<p><div id="dynsection-1" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-1-trigger" src="closed.png" alt="+"/> Here is the call graph for this function:</div>
<div id="dynsection-1-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-1-content" class="dyncontent" style="display:none;">
<div class="center"><img src="classcontext_free_1_1grammar_1_1_grammar_factory_a25d4e5bf4a9a452efca5dd6518e16c25_cgraph.png" border="0" usemap="#classcontext_free_1_1grammar_1_1_grammar_factory_a25d4e5bf4a9a452efca5dd6518e16c25_cgraph" alt=""/></div>
<map name="classcontext_free_1_1grammar_1_1_grammar_factory_a25d4e5bf4a9a452efca5dd6518e16c25_cgraph" id="classcontext_free_1_1grammar_1_1_grammar_factory_a25d4e5bf4a9a452efca5dd6518e16c25_cgraph">
<area shape="rect" id="node3" href="classcontext_free_1_1grammar_1_1_grammar_factory.html#a513482168bb15e55211bc4f04e276711" title="Controls that make up the grammar productions that are valid." alt="" coords="397,5,712,32"/></map>
</div>
</p>

<p><div id="dynsection-2" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-2-trigger" src="closed.png" alt="+"/> Here is the caller graph for this function:</div>
<div id="dynsection-2-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-2-content" class="dyncontent" style="display:none;">
<div class="center"><img src="classcontext_free_1_1grammar_1_1_grammar_factory_a25d4e5bf4a9a452efca5dd6518e16c25_icgraph.png" border="0" usemap="#classcontext_free_1_1grammar_1_1_grammar_factory_a25d4e5bf4a9a452efca5dd6518e16c25_icgraph" alt=""/></div>
<map name="classcontext_free_1_1grammar_1_1_grammar_factory_a25d4e5bf4a9a452efca5dd6518e16c25_icgraph" id="classcontext_free_1_1grammar_1_1_grammar_factory_a25d4e5bf4a9a452efca5dd6518e16c25_icgraph">
<area shape="rect" id="node3" href="classinput_parser_1_1_four_line_input_parser.html#a99c37488d66cfeecb33e13d573b4a81a" title="Read the file .4l and creates the object grammar." alt="" coords="398,5,642,32"/></map>
</div>
</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>src/contextFree/grammar/<a class="el" href="_grammar_factory_8java_source.html">GrammarFactory.java</a></li>
</ul>
</div><!-- contents -->
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><b>contextFree</b>      </li>
      <li class="navelem"><a class="el" href="namespacecontext_free_1_1grammar.html">grammar</a>      </li>
      <li class="navelem"><a class="el" href="classcontext_free_1_1grammar_1_1_grammar_factory.html">GrammarFactory</a>      </li>

    <li class="footer">Generated on Fri Mar 30 2012 21:26:25 for Context Free LALR1 compiler by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.0 </li>
   </ul>
 </div>


</body>
</html>
